#!/bin/bash
read -p "请输入一个循环的数字" number
i=0
while ((i<number))
do
  echo "hello${i}"
  let i++
  if [ $i -eq 3 ]; then
    break ;
  fi
done